<?php

class model_conn {

    protected static $conn = NULL;

    public static $host = 'mysql.terraassessoriamt.com.br';
    public static $usuario = 'terraassessoria';
    public static $senha = 'dbkey';
    public static $banco = 'terraassessoriamt';


    /**
     *
     * @return modelo_dbm_orm
     */
    public static function get_conn() {
        if (self::$conn == NULL) {
            self::$conn = new modelo_dbm_orm(array(
                model_conn::$host,
                model_conn::$usuario,
                model_conn::$senha, 
                model_conn::$banco
            ));
            self::$conn->usarUtf8();
        }
        return self::$conn;
    }
}

?>